Skip to content

replacing babel with swc for compiling#5733

Draft
binzywu wants to merge 2 commits intosalesforce:masterfrom
binzywu:master
Draft

replacing babel with swc for compiling#5733
binzywu wants to merge 2 commits intosalesforce:masterfrom
binzywu:master

Conversation

@binzywu
Copy link

@binzywu binzywu commented Mar 4, 2026

Details

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

binzywu added 2 commits March 4, 2026 08:55
… plugin

When injecting `registerComponent` into a module that already has
`import * as lwc from 'lwc'`, the import helper was incorrectly appending
the named specifier to the namespace import, producing invalid syntax
(`import * as lwc{ registerComponent } from 'lwc'`). Guard against this
by skipping namespace imports when looking for an existing declaration to
extend, and creating a separate import declaration instead.

Made-with: Cursor
…ted failures

Update 148 swc-expected.js snapshots to match SWC plugin output format
(double quotes, compact indentation). Add swc-expected.* to .prettierignore
since these are auto-generated fixture outputs. Remove render-undefined and
render-bad-value from ssr-compiler expectedFailures since SSRv2 now handles
them correctly, and add ssrFiles config to separate SSRv2 output files
from SSRv1 engine-server snapshots.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant